package edu.biwu.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private Integer id;

    private Integer userId;

    private String number;

    private LocalDateTime createtime;

    private String note;

    //一个订单只关联一个用户 一对一
    private User user;

    //一个订单中包含很多订单明细 一对多
    private List<OrderDetail> orderDetails;
}
